/*from tccdn minify at 2014-11-3 10:23:12,file：/cn/c/c/common-aspect.1.1.2.js*/
fish.ready(function() {
    fish.all(".breadcrumb").delegate(".more", "mouseover",
    function(a) {
        fish.one(a.delegateTarget).addClass("open")
    }).delegate(".more", "mouseout",
    function(a) {
        fish.one(a.delegateTarget).removeClass("open")
    }),
    function() {
        function a(b, d, e) {
            b = fish.one(b);
            var f = b.data("__fixed");
            f || (f = {
                top: b[0].currentStyle.top,
                bottom: b[0].currentStyle.bottom
            },
            b.data("__fixed", f), b.data("__fixedUpdate",
            function(c) {
                b.data("__fixed", c),
                a(b, fish.one(window).scrollTop(), fish.one(window).height())
            }));
            var g;
            f.bottom && (g = c.exec(f.bottom)) ? b[0].style.top = "%" === g[2] ? e + d - b.height() - e * parseInt(g[1]) / 100 + "px": e + d - b.height() - parseInt(g[1]) + "px": (g = c.exec(f.top), b[0].style.top = "%" === g[2] ? d + e * parseInt(g[1]) / 100 + "px": d + parseInt(g[1]) + "px")
        }
        function b() {
            var b = fish.all(".fixed");
            if (!fish.browser("ms", 6)) return void b.data("__fixedUpdate",
            function() {});
            if (0 !== b.length) {
                var c = fish.one(window).scrollTop(),
                d = fish.one(window).height();
                b.each(function(b) {
                    a(b, c, d)
                })
            }
        }
        var c = /^(\d+)(.*)$/;
        fish.one(window).on("scroll",
        function() {
            b()
        }).on("resize",
        function() {
            b()
        }),
        b()
    } (),
    function() {
        function a() {
            c.style.visibility = fish.one(window).scrollTop() > 100 ? "visible": "hidden"
        }
        function b() {
            function a() {
                b -= c,
                b > 0 ? d = setTimeout(a, 16) : (b = 0, d = void 0),
                document.documentElement.scrollTop = document.body.scrollTop = b
            }
            if (!d) {
                var b = fish.one(window).scrollTop(),
                c = Math.floor(b / 20);
                d = setTimeout(a, 16)
            }
        }
        var c = fish.dom(".back_top");
        if (c) {
            a(),
            fish.one(window).on("scroll",
            function() {
                a()
            });
            var d;
            fish.one(".back_top").on("click",
            function() {
                b()
            })
        }
    } (),
    function() {
        var a = fish.all(".side_nav .ly_side_arrow"); (fish.browser("ms", 6) || fish.browser("ms", 7)) && a[0] && a.html("<i></i>")
    } (),
    function() {
        var a = fish.dom(".ly_wtm");
        if (a) {
            var b = fish.browser("ms", 6),
            c = fish.one(window).height(),
            d = 0,
            e = fish.one(".ly_wtw_b").offset(window).top - Math.max(document.documentElement.scrollTop, document.body.scrollTop);
            fish.one(window).on("resize",
            function() {
                c = fish.one(window).height()
            }),
            fish.one(".ly_wtw_b").hover(function() {
                if (e = fish.one(".ly_wtw_b").offset(window).top - Math.max(document.documentElement.scrollTop, document.body.scrollTop), d = fish.one(".ly_wtw_b .ly_wtm_con").height(), d > c - e) if (c > d) {
                    var a = d - (c - e);
                    fish.one(".ly_wtw_b .ly_wtm_con").css("top:" + ( - a - 2) + "px"),
                    fish.one(".ly_wtw_b .ly_side_arrow").css("top:" + (11 + a + 2) + "px")
                } else if (b && d > c) {
                    var a = d - (c - e);
                    fish.one(".ly_wtw_b .ly_wtm_con").css("top:" + ( - a - 2) + "px"),
                    fish.one(".ly_wtw_b .ly_side_arrow").css("top:" + (11 + a + 2) + "px")
                } else fish.one(".ly_wtw_b .ly_side_arrow").css("top:11px"),
                fish.one(".ly_wtw_b .ly_wtm_con").css("top:0px");
                fish.dom(".ly_wtw_b .ly_wtm_con").style.display = "block"
            },
            function() {
                fish.dom(".ly_wtw_b .ly_wtm_con").style.display = "none"
            })
        }
    } (),
    function() {
        var a = fish.dom(".side_nav .ly_cs");
        lxwm2 = a ? fish.one(".ly_cs_link", a) : null,
        a && lxwm2 && fish.one(a).hover(function() {
            lxwm2.removeClass("ly_cs_link_b").html(lxwm2[0].getAttribute("title")),
            fish.one(".ly_phone_m", a).css("display:block")
        },
        function() {
            lxwm2.addClass("ly_cs_link_b").html(""),
            fish.one(".ly_phone_m", a).css("display:none")
        })
    } ();
    var a = function() {
        function a() {
            fish.ajax({
                url: "http://wpa.b.qq.com/cgi/wpa.php?key=XzkzODAxMTk4MV8xMDAxMTdfNDAwMTc0MDAxN18",
                type: "script",
                fn: function() {
                    for (var a = 0,
                    d = c.length; d > a; a++) c[a]();
                    b = !0
                }
            })
        }
        var b, c = [];
        return fish.browser("ms", 6) || ("27212007" === getRefid() ? a() : "91" === fish.one("#diycid").val() ? a() : b = !1),
        {
            show: function(a) {
                b === !0 ? a() : void 0 === b && c.push(a)
            }
        }
    } ();
    a.show(function() {
        var a = fish.one("#tcWeiXin"),
        b = fish.one(a.length ? a[0].parentNode: void 0);
        b.hasClass("express_anchor") && (a.html("before", '<div class="QQ_Consult"><a id="QQConsultIcon" href="javascript:;">咨询</a></div>'), BizQQWPA.addCustom({
            nameAccount: "4001740017",
            selector: "QQConsultIcon",
            aty: "0"
        }))
    }),
    a.show(function() {
        var a = fish.one(".side_nav");
        1 === a.length && (a.html("top", '<a id="QQConsultSquare" href="javascript:;" title="QQ在线咨询" ></a>'), BizQQWPA.addCustom({
            nameAccount: "4001740017",
            selector: "QQConsultSquare",
            aty: "0"
        }))
    }),
    a.show(function() {
        var a = fish.all(".logo_right .lhc");
        a.length > 0 && (fish.one(a[0]).html("before", '<li id="BookLoginQQConsultIcon"><a href="javascript:;">咨询</a></li>'), fish.one(a[1]).html("before", '<li id="BookLogoutQQConsultIcon"><a href="javascript:;">咨询</a></li>'), BizQQWPA.addCustom([{
            nameAccount: "4001740017",
            selector: "BookLoginQQConsultIcon",
            aty: "0"
        },
        {
            nameAccount: "4001740017",
            selector: "BookLogoutQQConsultIcon",
            aty: "0"
        }]))
    }),
    function() {
        var a = new Date(2014, 6, 31),
        b = new Date;
        if (! (b.getTime() > a.getTime())) {
            var c = ["http://www.ly.com/", "http://www.ly.com/hotel/", "http://www.ly.com/FlightQuery.aspx", "http://www.ly.com/iflight/", "http://www.ly.com/scenery/", "http://www.ly.com/zizhuyou/", "http://www.ly.com/huochepiao/train/", "http://www.ly.com/guonei/", "http://www.ly.com/dujia/", "http://www.ly.com/youlun/", "http://www.ly.com/dujia/visa/", "http://tuan.ly.com", "http://www.ly.com/vip/", "http://go.ly.com/"];
            if ( - 1 !== c.indexOf(document.location.href)) {
                var d = fish.browser("ms", 6);
                fish.ready(function() {
                    var a = fish.one("#content").getCss("width"),
                    b = a && 960 == parseFloat(a.replace("px", "")) ? 960 : 1200,
                    c = document.documentElement.clientWidth ? document.documentElement.clientWidth: fish.one(window).width() - 25;
                    fish.one(document.body).html("bottom", '<a class="fixed youlun_actImg" target="_blank" href="http://www.ly.com/youlun/tours-61630.html"></a>');
                    var e = (c - b) / 2 - 202;
                    e = d && 0 > e ? 0 : e,
                    fish.one(".youlun_actImg").css("left:" + e + "px;"),
                    fish.one(window).on("resize",
                    function() {
                        a = fish.one("#content").getCss("width"),
                        b = a && 960 == parseFloat(a.replace("px", "")) ? 960 : 1200,
                        c = document.documentElement.clientWidth ? document.documentElement.clientWidth: fish.one(window).width() - 25,
                        e = (c - b) / 2 - 202,
                        e = d && 0 > e ? 0 : e,
                        fish.one(".youlun_actImg").css("left:" + e + "px;")
                    }),
                    fish.one(".youlun_actImg").hover(function() {
                        if (!d) {
                            var a = parseFloat(fish.one(this).getCss("width").replace("px", ""));
                            this.style.width = a + 110 + "px"
                        }
                    },
                    function() {
                        if (!d) {
                            var a = parseFloat(fish.one(this).getCss("width").replace("px", ""));
                            this.style.width = a - 110 + "px"
                        }
                    })
                })
            }
        }
    } ()
});